import random

win_group = (
    ('石头', '剪刀'),
    ('剪刀', '布'),
    ('布', '石头')
)
punch_group = ('石头', '剪刀', '布')
sys_punch = punch_group[random.randint(0, 2)]
user_punch = input('请输入出拳:')
if user_punch not in punch_group:
    print('输入出错！')
else:
    if user_punch == sys_punch:
        print('平局')
    else:
        for item in win_group:
            if user_punch == item[0] and sys_punch == item[1]:
                print('您赢了')
                break
        else:
            print('您输了')
